home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 10 / BBS In A Box Volume X (AMUG) (January 1994).bin / Files / Prog / U-Z / VideoToolBox.cpt / VideoToolboxSources / GetScreenDevice.c < prev    next >
MacBinary  |  1993-03-06  |  5.8 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sat Mar 6 21:38:38 1993, modified Sat Mar 6 21:38:38 1993, creator Think C, type ASCII, 5049 bytes "GetScreenDevice.c" , at 0x1439 626 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 47 65 74 53 63 72 | 65 65 6e 44 65 76 69 63 |..GetScr|eenDevic|
|00000010| 65 2e 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |e.c.....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 13 b9 00 | 00 02 72 a7 bf 10 ae a7 |........|..r.....|
|00000060| bf 10 ae 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f9 c4 00 00 |........|........|
|00000080| 2f 2a 20 47 65 74 53 63 | 72 65 65 6e 44 65 76 69 |/* GetSc|reenDevi|
|00000090| 63 65 2e 63 0d 43 6f 70 | 79 72 69 67 68 74 20 a9 |ce.c.Cop|yright .|
|000000a0| 20 31 39 38 39 2d 31 39 | 39 33 20 44 65 6e 69 73 | 1989-19|93 Denis|
|000000b0| 20 47 2e 20 50 65 6c 6c | 69 0d 48 49 53 54 4f 52 | G. Pell|i.HISTOR|
|000000c0| 59 3a 0d 33 2f 32 30 2f | 39 30 09 09 64 67 70 09 |Y:.3/20/|90..dgp.|
|000000d0| 6d 61 6b 65 20 63 6f 6d | 70 61 74 69 62 6c 65 20 |make com|patible |
|000000e0| 77 69 74 68 20 4d 50 57 | 20 43 2e 0d 33 2f 32 32 |with MPW| C..3/22|
|000000f0| 2f 39 30 09 64 67 70 09 | 63 68 61 6e 67 65 64 20 |/90.dgp.|changed |
|00000100| 47 65 74 44 65 76 69 63 | 65 53 6c 6f 74 20 74 6f |GetDevic|eSlot to|
|00000110| 20 75 73 65 20 74 68 65 | 20 41 75 78 44 43 45 48 | use the| AuxDCEH|
|00000120| 61 6e 64 6c 65 20 69 6e | 73 74 65 61 64 20 6f 66 |andle in|stead of|
|00000130| 20 64 65 64 75 63 69 6e | 67 20 69 74 0d 09 09 09 | deducin|g it....|
|00000140| 66 72 6f 6d 20 74 68 65 | 20 62 61 73 65 41 64 64 |from the| baseAdd|
|00000150| 72 20 6f 66 20 74 68 65 | 20 50 69 78 4d 61 70 2e |r of the| PixMap.|
|00000160| 20 54 68 69 73 20 69 73 | 20 61 20 63 6c 65 61 6e | This is| a clean|
|00000170| 65 72 20 77 61 79 20 74 | 6f 20 64 6f 20 69 74 2e |er way t|o do it.|
|00000180| 0d 34 2f 39 2f 39 30 09 | 64 67 70 09 65 6c 69 6d |.4/9/90.|dgp.elim|
|00000190| 69 6e 61 74 65 64 20 23 | 64 65 66 69 6e 65 20 66 |inated #|define f|
|000001a0| 6f 72 20 4d 61 69 6e 73 | 63 72 6e 20 6d 69 73 70 |or Mains|crn misp|
|000001b0| 65 6c 6c 69 6e 67 20 69 | 6e 20 43 6f 6c 6f 72 2e |elling i|n Color.|
|000001c0| 68 0d 31 30 2f 31 37 2f | 39 30 20 64 67 70 20 41 |h.10/17/|90 dgp A|
|000001d0| 64 64 65 64 20 41 64 64 | 72 65 73 73 54 6f 53 63 |dded Add|ressToSc|
|000001e0| 72 65 65 6e 44 65 76 69 | 63 65 28 29 20 66 6f 72 |reenDevi|ce() for|
|000001f0| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 77 | compati|bility w|
|00000200| 69 74 68 20 62 75 69 6c | 74 2d 69 6e 20 76 69 64 |ith buil|t-in vid|
|00000210| 65 6f 20 6f 6e 0d 09 09 | 09 74 68 65 20 4d 61 63 |eo on...|.the Mac|
|00000220| 20 49 49 63 69 2c 20 49 | 49 73 69 2c 20 61 6e 64 | IIci, I|Isi, and|
|00000230| 20 4c 43 2e 0d 31 30 2f | 31 38 2f 39 30 20 64 67 | LC..10/|18/90 dg|
|00000240| 70 20 41 64 64 65 64 20 | 4c 6f 63 61 6c 54 6f 47 |p Added |LocalToG|
|00000250| 6c 6f 62 61 6c 52 65 63 | 74 28 29 20 61 6e 64 20 |lobalRec|t() and |
|00000260| 47 65 74 57 69 6e 64 6f | 77 44 65 76 69 63 65 28 |GetWindo|wDevice(|
|00000270| 29 2e 0d 38 2f 32 34 2f | 39 31 09 09 64 67 70 09 |)..8/24/|91..dgp.|
|00000280| 4d 61 64 65 20 63 6f 6d | 70 61 74 69 62 6c 65 20 |Made com|patible |
|00000290| 77 69 74 68 20 54 48 49 | 4e 4b 20 43 20 35 2e 30 |with THI|NK C 5.0|
|000002a0| 2e 0d 32 2f 31 2f 39 32 | 09 64 67 70 09 46 69 78 |..2/1/92|.dgp.Fix|
|000002b0| 65 64 20 62 75 67 73 20 | 69 6e 20 47 65 74 57 69 |ed bugs |in GetWi|
|000002c0| 6e 64 6f 77 44 65 76 69 | 63 65 28 29 20 77 68 69 |ndowDevi|ce() whi|
|000002d0| 63 68 20 72 65 73 75 6c | 74 65 64 20 69 6e 20 72 |ch resul|ted in r|
|000002e0| 65 74 75 72 6e 69 6e 67 | 20 67 61 72 62 61 67 65 |eturning| garbage|
|000002f0| 20 47 44 48 61 6e 64 6c | 65 2e 0d 33 2f 33 2f 39 | GDHandl|e..3/3/9|
|00000300| 32 09 64 67 70 09 49 6e | 20 47 65 74 53 63 72 65 |2.dgp.In| GetScre|
|00000310| 65 6e 44 65 76 69 63 65 | 28 29 2c 20 73 6b 69 70 |enDevice|(), skip|
|00000320| 20 69 6e 61 63 74 69 76 | 65 20 73 63 72 65 65 6e | inactiv|e screen|
|00000330| 73 2e 0d 38 2f 32 30 2f | 39 32 09 64 67 70 09 65 |s..8/20/|92.dgp.e|
|00000340| 78 70 61 6e 64 65 64 20 | 63 6f 6d 6d 65 6e 74 73 |xpanded |comments|
|00000350| 20 6f 66 20 47 65 74 44 | 65 76 69 63 65 53 6c 6f | of GetD|eviceSlo|
|00000360| 74 28 29 2c 20 6e 6f 74 | 69 6e 67 20 74 68 61 74 |t(), not|ing that|
|00000370| 20 69 74 20 77 6f 72 6b | 73 20 65 76 65 6e 20 77 | it work|s even w|
|00000380| 69 74 68 0d 09 09 09 62 | 75 69 6c 74 2d 69 6e 20 |ith....b|uilt-in |
|00000390| 76 69 64 65 6f 2c 20 65 | 2e 67 2e 20 6f 6e 20 4d |video, e|.g. on M|
|000003a0| 61 63 20 49 49 63 69 2e | 0d 38 2f 32 36 2f 39 32 |ac IIci.|.8/26/92|
|000003b0| 09 64 67 70 09 47 65 74 | 44 65 76 69 63 65 53 6c |.dgp.Get|DeviceSl|
|000003c0| 6f 74 28 29 20 6e 6f 77 | 20 72 65 74 75 72 6e 73 |ot() now| returns|
|000003d0| 20 2d 31 20 69 66 20 6e | 6f 6e 65 2c 20 73 69 6e | -1 if n|one, sin|
|000003e0| 63 65 20 7a 65 72 6f 20 | 69 73 20 61 20 6c 65 67 |ce zero |is a leg|
|000003f0| 61 6c 20 73 6c 6f 74 2e | 0d 09 09 09 47 65 74 53 |al slot.|....GetS|
|00000400| 63 72 65 65 6e 44 65 76 | 69 63 65 28 29 20 66 69 |creenDev|ice() fi|
|00000410| 72 73 74 20 63 68 65 63 | 6b 73 20 66 6f 72 20 38 |rst chec|ks for 8|
|00000420| 2d 62 69 74 20 51 75 69 | 63 6b 44 72 61 77 28 29 |-bit Qui|ckDraw()|
|00000430| 2e 0d 39 2f 31 30 2f 39 | 32 09 64 67 70 09 41 63 |..9/10/9|2.dgp.Ac|
|00000440| 74 75 61 6c 6c 79 20 69 | 6d 70 6c 65 6d 65 6e 74 |tually i|mplement|
|00000450| 65 64 20 74 68 65 20 38 | 2f 32 36 20 63 68 61 6e |ed the 8|/26 chan|
|00000460| 67 65 20 69 6e 73 74 65 | 61 64 20 6f 66 20 6a 75 |ge inste|ad of ju|
|00000470| 73 74 20 63 68 61 6e 67 | 69 6e 67 20 74 68 65 20 |st chang|ing the |
|00000480| 0d 09 09 09 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |....docu|mentatio|
|00000490| 6e 2e 20 4f 6f 70 73 2e | 0d 2a 2f 0d 23 69 6e 63 |n. Oops.|.*/.#inc|
|000004a0| 6c 75 64 65 20 22 56 69 | 64 65 6f 54 6f 6f 6c 62 |lude "Vi|deoToolb|
|000004b0| 6f 78 2e 68 22 0d 0d 73 | 68 6f 72 74 20 69 6e 74 |ox.h"..s|hort int|
|000004c0| 20 47 65 74 44 65 76 69 | 63 65 53 6c 6f 74 28 47 | GetDevi|ceSlot(G|
|000004d0| 44 48 61 6e 64 6c 65 20 | 64 65 76 69 63 65 29 0d |DHandle |device).|
|000004e0| 2f 2f 20 47 65 74 73 20 | 74 68 65 20 22 73 6c 6f |// Gets |the "slo|
|000004f0| 74 22 20 66 6f 72 20 61 | 6e 79 20 73 63 72 65 65 |t" for a|ny scree|
|00000500| 6e 20 64 65 76 69 63 65 | 2c 20 65 76 65 6e 20 69 |n device|, even i|
|00000510| 66 20 69 74 27 73 20 62 | 75 69 6c 74 2d 69 6e 20 |f it's b|uilt-in |
|00000520| 76 69 64 65 6f 2c 20 65 | 2e 67 2e 20 6f 6e 20 4d |video, e|.g. on M|
|00000530| 61 63 0d 2f 2f 20 49 49 | 63 69 20 6f 72 20 51 75 |ac.// II|ci or Qu|
|00000540| 61 64 72 61 2e 20 53 65 | 65 20 31 39 39 32 20 49 |adra. Se|e 1992 I|
|00000550| 6e 73 69 64 65 20 4d 61 | 63 20 22 50 72 6f 63 65 |nside Ma|c "Proce|
|00000560| 73 73 65 73 22 20 70 61 | 67 65 20 34 2d 31 31 2e |sses" pa|ge 4-11.|
|00000570| 20 52 65 74 75 72 6e 73 | 20 2d 31 20 69 66 20 6e | Returns| -1 if n|
|00000580| 6f 6e 65 2e 0d 2f 2f 20 | 5a 65 72 6f 20 69 73 20 |one..// |Zero is |
|00000590| 61 20 6c 65 67 61 6c 20 | 73 6c 6f 74 20 66 6f 72 |a legal |slot for|
|000005a0| 20 62 75 69 6c 74 2d 69 | 6e 20 76 69 64 65 6f 20 | built-i|n video |
|000005b0| 64 65 76 69 63 65 73 2e | 0d 7b 0d 09 41 75 78 44 |devices.|.{..AuxD|
|000005c0| 43 45 48 61 6e 64 6c 65 | 20 6d 79 41 75 78 44 43 |CEHandle| myAuxDC|
|000005d0| 45 48 61 6e 64 6c 65 3b | 0d 20 0d 09 69 66 28 64 |EHandle;|. ..if(d|
|000005e0| 65 76 69 63 65 20 3d 3d | 20 4e 55 4c 4c 29 20 72 |evice ==| NULL) r|
|000005f0| 65 74 75 72 6e 20 2d 31 | 3b 0d 09 6d 79 41 75 78 |eturn -1|;..myAux|
|00000600| 44 43 45 48 61 6e 64 6c | 65 3d 28 41 75 78 44 43 |DCEHandl|e=(AuxDC|
|00000610| 45 48 61 6e 64 6c 65 29 | 20 47 65 74 44 43 74 6c |EHandle)| GetDCtl|
|00000620| 45 6e 74 72 79 28 28 2a | 2a 64 65 76 69 63 65 29 |Entry((*|*device)|
|00000630| 2e 67 64 52 65 66 4e 75 | 6d 29 3b 0d 09 72 65 74 |.gdRefNu|m);..ret|
|00000640| 75 72 6e 20 28 28 2a 2a | 6d 79 41 75 78 44 43 45 |urn ((**|myAuxDCE|
|00000650| 48 61 6e 64 6c 65 29 2e | 64 43 74 6c 53 6c 6f 74 |Handle).|dCtlSlot|
|00000660| 29 3b 0d 7d 0d 0d 47 44 | 48 61 6e 64 6c 65 20 47 |);.}..GD|Handle G|
|00000670| 65 74 53 63 72 65 65 6e | 44 65 76 69 63 65 28 69 |etScreen|Device(i|
|00000680| 6e 74 20 6e 29 0d 2f 2f | 20 52 65 74 75 72 6e 73 |nt n).//| Returns|
|00000690| 20 61 20 68 61 6e 64 6c | 65 20 74 6f 20 74 68 65 | a handl|e to the|
|000006a0| 20 6e 2d 74 68 20 73 63 | 72 65 65 6e 2c 20 77 68 | n-th sc|reen, wh|
|000006b0| 65 72 65 20 74 68 65 20 | 4d 61 69 6e 44 65 76 69 |ere the |MainDevi|
|000006c0| 63 65 20 69 73 20 74 68 | 65 20 7a 65 72 6f 2d 74 |ce is th|e zero-t|
|000006d0| 68 20 73 63 72 65 65 6e | 2e 0d 2f 2f 20 52 65 74 |h screen|..// Ret|
|000006e0| 75 72 6e 73 20 4e 55 4c | 4c 20 69 66 20 72 65 71 |urns NUL|L if req|
|000006f0| 75 65 73 74 20 63 61 6e | 27 74 20 62 65 20 73 61 |uest can|'t be sa|
|00000700| 74 69 73 66 69 65 64 2e | 0d 7b 0d 09 47 44 48 61 |tisfied.|.{..GDHa|
|00000710| 6e 64 6c 65 20 64 65 76 | 69 63 65 3b 0d 09 69 6e |ndle dev|ice;..in|
|00000720| 74 20 69 2c 65 72 72 6f | 72 3b 0d 09 6c 6f 6e 67 |t i,erro|r;..long|
|00000730| 20 76 61 6c 75 65 3b 0d | 0d 09 69 66 28 6e 3c 30 | value;.|..if(n<0|
|00000740| 29 72 65 74 75 72 6e 20 | 4e 55 4c 4c 3b 0d 09 65 |)return |NULL;..e|
|00000750| 72 72 6f 72 3d 47 65 73 | 74 61 6c 74 28 67 65 73 |rror=Ges|talt(ges|
|00000760| 74 61 6c 74 51 75 69 63 | 6b 64 72 61 77 56 65 72 |taltQuic|kdrawVer|
|00000770| 73 69 6f 6e 2c 26 76 61 | 6c 75 65 29 3b 0d 09 69 |sion,&va|lue);..i|
|00000780| 66 28 65 72 72 6f 72 20 | 7c 7c 20 76 61 6c 75 65 |f(error ||| value|
|00000790| 3c 67 65 73 74 61 6c 74 | 38 42 69 74 51 44 29 72 |<gestalt|8BitQD)r|
|000007a0| 65 74 75 72 6e 20 4e 55 | 4c 4c 3b 09 2f 2f 20 6e |eturn NU|LL;.// n|
|000007b0| 65 65 64 20 38 2d 62 69 | 74 20 71 75 69 63 6b 64 |eed 8-bi|t quickd|
|000007c0| 72 61 77 0d 09 69 66 28 | 6e 3d 3d 30 29 20 72 65 |raw..if(|n==0) re|
|000007d0| 74 75 72 6e 20 47 65 74 | 4d 61 69 6e 44 65 76 69 |turn Get|MainDevi|
|000007e0| 63 65 28 29 3b 0d 09 64 | 65 76 69 63 65 3d 47 65 |ce();..d|evice=Ge|
|000007f0| 74 44 65 76 69 63 65 4c | 69 73 74 28 29 3b 0d 09 |tDeviceL|ist();..|
|00000800| 69 3d 30 3b 0d 09 77 68 | 69 6c 65 28 64 65 76 69 |i=0;..wh|ile(devi|
|00000810| 63 65 21 3d 4e 55 4c 4c | 29 7b 0d 09 09 69 66 20 |ce!=NULL|){...if |
|00000820| 28 54 65 73 74 44 65 76 | 69 63 65 41 74 74 72 69 |(TestDev|iceAttri|
|00000830| 62 75 74 65 28 64 65 76 | 69 63 65 2c 73 63 72 65 |bute(dev|ice,scre|
|00000840| 65 6e 44 65 76 69 63 65 | 29 0d 09 09 09 26 26 20 |enDevice|)....&& |
|00000850| 21 54 65 73 74 44 65 76 | 69 63 65 41 74 74 72 69 |!TestDev|iceAttri|
|00000860| 62 75 74 65 28 64 65 76 | 69 63 65 2c 6d 61 69 6e |bute(dev|ice,main|
|00000870| 53 63 72 65 65 6e 29 0d | 09 09 09 26 26 20 54 65 |Screen).|...&& Te|
|00000880| 73 74 44 65 76 69 63 65 | 41 74 74 72 69 62 75 74 |stDevice|Attribut|
|00000890| 65 28 64 65 76 69 63 65 | 2c 73 63 72 65 65 6e 41 |e(device|,screenA|
|000008a0| 63 74 69 76 65 29 29 7b | 0d 09 09 09 09 69 2b 2b |ctive)){|.....i++|
|000008b0| 3b 0d 09 09 09 09 69 66 | 28 69 3d 3d 6e 29 62 72 |;.....if|(i==n)br|
|000008c0| 65 61 6b 3b 0d 09 09 09 | 7d 0d 09 09 64 65 76 69 |eak;....|}...devi|
|000008d0| 63 65 20 3d 20 47 65 74 | 4e 65 78 74 44 65 76 69 |ce = Get|NextDevi|
|000008e0| 63 65 28 64 65 76 69 63 | 65 29 3b 0d 09 7d 0d 09 |ce(devic|e);..}..|
|000008f0| 72 65 74 75 72 6e 20 64 | 65 76 69 63 65 3b 0d 7d |return d|evice;.}|
|00000900| 0d 0d 69 6e 74 20 47 65 | 74 53 63 72 65 65 6e 49 |..int Ge|tScreenI|
|00000910| 6e 64 65 78 28 47 44 48 | 61 6e 64 6c 65 20 64 65 |ndex(GDH|andle de|
|00000920| 76 69 63 65 29 0d 2f 2f | 20 49 6e 76 65 72 73 65 |vice).//| Inverse|
|00000930| 20 6f 66 20 47 65 74 53 | 63 72 65 65 6e 44 65 76 | of GetS|creenDev|
|00000940| 69 63 65 28 29 2e 20 52 | 65 74 75 72 6e 73 20 2d |ice(). R|eturns -|
|00000950| 31 20 69 66 20 72 65 71 | 75 65 73 74 20 63 61 6e |1 if req|uest can|
|00000960| 27 74 20 62 65 20 73 61 | 74 69 73 66 69 65 64 2e |'t be sa|tisfied.|
|00000970| 0d 7b 0d 09 69 6e 74 20 | 69 2c 65 72 72 6f 72 3b |.{..int |i,error;|
|00000980| 0d 09 6c 6f 6e 67 20 76 | 61 6c 75 65 3b 0d 0d 09 |..long v|alue;...|
|00000990| 65 72 72 6f 72 3d 47 65 | 73 74 61 6c 74 28 67 65 |error=Ge|stalt(ge|
|000009a0| 73 74 61 6c 74 51 75 69 | 63 6b 64 72 61 77 56 65 |staltQui|ckdrawVe|
|000009b0| 72 73 69 6f 6e 2c 26 76 | 61 6c 75 65 29 3b 0d 09 |rsion,&v|alue);..|
|000009c0| 69 66 28 65 72 72 6f 72 | 20 7c 7c 20 76 61 6c 75 |if(error| || valu|
|000009d0| 65 3c 67 65 73 74 61 6c | 74 38 42 69 74 51 44 29 |e<gestal|t8BitQD)|
|000009e0| 72 65 74 75 72 6e 20 30 | 3b 0d 09 69 66 28 64 65 |return 0|;..if(de|
|000009f0| 76 69 63 65 3d 3d 4e 55 | 4c 4c 29 72 65 74 75 72 |vice==NU|LL)retur|
|00000a00| 6e 20 2d 31 3b 0d 09 66 | 6f 72 28 69 3d 30 3b 69 |n -1;..f|or(i=0;i|
|00000a10| 3c 31 36 3b 69 2b 2b 29 | 69 66 28 64 65 76 69 63 |<16;i++)|if(devic|
|00000a20| 65 3d 3d 47 65 74 53 63 | 72 65 65 6e 44 65 76 69 |e==GetSc|reenDevi|
|00000a30| 63 65 28 69 29 29 72 65 | 74 75 72 6e 20 69 3b 0d |ce(i))re|turn i;.|
|00000a40| 09 72 65 74 75 72 6e 20 | 2d 31 3b 0d 7d 0d 0d 47 |.return |-1;.}..G|
|00000a50| 44 48 61 6e 64 6c 65 20 | 47 65 74 57 69 6e 64 6f |DHandle |GetWindo|
|00000a60| 77 44 65 76 69 63 65 28 | 57 69 6e 64 6f 77 50 74 |wDevice(|WindowPt|
|00000a70| 72 20 77 69 6e 64 6f 77 | 29 0d 2f 2f 20 52 65 74 |r window|).// Ret|
|00000a80| 75 72 6e 73 20 47 44 48 | 61 6e 64 6c 65 20 6f 66 |urns GDH|andle of|
|00000a90| 20 73 63 72 65 65 6e 20 | 77 69 74 68 20 6c 61 72 | screen |with lar|
|00000aa0| 67 65 73 74 20 69 6e 74 | 65 72 73 65 63 74 69 6f |gest int|ersectio|
|00000ab0| 6e 20 77 69 74 68 20 74 | 68 65 20 77 69 6e 64 6f |n with t|he windo|
|00000ac0| 77 27 73 20 63 6f 6e 74 | 65 6e 74 2e 0d 7b 0d 09 |w's cont|ent..{..|
|00000ad0| 52 65 63 74 20 72 2c 6f | 76 65 72 6c 61 70 3b 0d |Rect r,o|verlap;.|
|00000ae0| 09 47 44 48 61 6e 64 6c | 65 20 64 65 76 69 63 65 |.GDHandl|e device|
|00000af0| 2c 64 6f 6d 69 6e 61 6e | 74 44 65 76 69 63 65 3d |,dominan|tDevice=|
|00000b00| 4e 55 4c 4c 3b 0d 09 6c | 6f 6e 67 20 61 72 65 61 |NULL;..l|ong area|
|00000b10| 2c 67 72 65 61 74 65 73 | 74 41 72 65 61 3b 0d 09 |,greates|tArea;..|
|00000b20| 57 69 6e 64 6f 77 50 74 | 72 20 6f 6c 64 57 69 6e |WindowPt|r oldWin|
|00000b30| 64 6f 77 3b 0d 09 69 6e | 74 20 65 72 72 6f 72 3b |dow;..in|t error;|
|00000b40| 0d 09 6c 6f 6e 67 20 76 | 61 6c 75 65 3b 0d 0d 09 |..long v|alue;...|
|00000b50| 69 66 28 77 69 6e 64 6f | 77 3d 3d 4e 55 4c 4c 29 |if(windo|w==NULL)|
|00000b60| 72 65 74 75 72 6e 20 4e | 55 4c 4c 3b 0d 09 65 72 |return N|ULL;..er|
|00000b70| 72 6f 72 3d 47 65 73 74 | 61 6c 74 28 67 65 73 74 |ror=Gest|alt(gest|
|00000b80| 61 6c 74 51 75 69 63 6b | 64 72 61 77 56 65 72 73 |altQuick|drawVers|
|00000b90| 69 6f 6e 2c 26 76 61 6c | 75 65 29 3b 0d 09 69 66 |ion,&val|ue);..if|
|00000ba0| 28 65 72 72 6f 72 20 7c | 7c 20 76 61 6c 75 65 3c |(error ||| value<|
|00000bb0| 67 65 73 74 61 6c 74 38 | 42 69 74 51 44 29 72 65 |gestalt8|BitQD)re|
|00000bc0| 74 75 72 6e 20 4e 55 4c | 4c 3b 09 2f 2f 20 6e 65 |turn NUL|L;.// ne|
|00000bd0| 65 64 20 38 2d 62 69 74 | 20 71 75 69 63 6b 64 72 |ed 8-bit| quickdr|
|00000be0| 61 77 0d 09 72 3d 77 69 | 6e 64 6f 77 2d 3e 70 6f |aw..r=wi|ndow->po|
|00000bf0| 72 74 52 65 63 74 3b 0d | 09 47 65 74 50 6f 72 74 |rtRect;.|.GetPort|
|00000c00| 28 26 6f 6c 64 57 69 6e | 64 6f 77 29 3b 0d 09 53 |(&oldWin|dow);..S|
|00000c10| 65 74 50 6f 72 74 28 77 | 69 6e 64 6f 77 29 3b 0d |etPort(w|indow);.|
|00000c20| 09 4c 6f 63 61 6c 54 6f | 47 6c 6f 62 61 6c 52 65 |.LocalTo|GlobalRe|
|00000c30| 63 74 28 26 72 29 3b 0d | 09 53 65 74 50 6f 72 74 |ct(&r);.|.SetPort|
|00000c40| 28 6f 6c 64 57 69 6e 64 | 6f 77 29 3b 0d 09 64 65 |(oldWind|ow);..de|
|00000c50| 76 69 63 65 3d 47 65 74 | 44 65 76 69 63 65 4c 69 |vice=Get|DeviceLi|
|00000c60| 73 74 28 29 3b 0d 09 67 | 72 65 61 74 65 73 74 41 |st();..g|reatestA|
|00000c70| 72 65 61 3d 30 3b 0d 09 | 77 68 69 6c 65 28 64 65 |rea=0;..|while(de|
|00000c80| 76 69 63 65 21 3d 4e 55 | 4c 4c 29 7b 0d 09 09 69 |vice!=NU|LL){...i|
|00000c90| 66 28 54 65 73 74 44 65 | 76 69 63 65 41 74 74 72 |f(TestDe|viceAttr|
|00000ca0| 69 62 75 74 65 28 64 65 | 76 69 63 65 2c 73 63 72 |ibute(de|vice,scr|
|00000cb0| 65 65 6e 44 65 76 69 63 | 65 29 0d 09 09 09 26 26 |eenDevic|e)....&&|
|00000cc0| 20 54 65 73 74 44 65 76 | 69 63 65 41 74 74 72 69 | TestDev|iceAttri|
|00000cd0| 62 75 74 65 28 64 65 76 | 69 63 65 2c 73 63 72 65 |bute(dev|ice,scre|
|00000ce0| 65 6e 41 63 74 69 76 65 | 29 29 7b 0d 09 09 09 09 |enActive|)){.....|
|00000cf0| 53 65 63 74 52 65 63 74 | 28 26 72 2c 26 28 2a 64 |SectRect|(&r,&(*d|
|00000d00| 65 76 69 63 65 29 2d 3e | 67 64 52 65 63 74 2c 26 |evice)->|gdRect,&|
|00000d10| 6f 76 65 72 6c 61 70 29 | 3b 0d 09 09 09 09 61 72 |overlap)|;.....ar|
|00000d20| 65 61 3d 28 6c 6f 6e 67 | 29 28 6f 76 65 72 6c 61 |ea=(long|)(overla|
|00000d30| 70 2e 72 69 67 68 74 2d | 6f 76 65 72 6c 61 70 2e |p.right-|overlap.|
|00000d40| 6c 65 66 74 29 2a 28 6f | 76 65 72 6c 61 70 2e 62 |left)*(o|verlap.b|
|00000d50| 6f 74 74 6f 6d 2d 6f 76 | 65 72 6c 61 70 2e 74 6f |ottom-ov|erlap.to|
|00000d60| 70 29 3b 0d 09 09 09 09 | 69 66 28 61 72 65 61 3e |p);.....|if(area>|
|00000d70| 67 72 65 61 74 65 73 74 | 41 72 65 61 29 7b 0d 09 |greatest|Area){..|
|00000d80| 09 09 09 09 67 72 65 61 | 74 65 73 74 41 72 65 61 |....grea|testArea|
|00000d90| 3d 61 72 65 61 3b 0d 09 | 09 09 09 09 64 6f 6d 69 |=area;..|....domi|
|00000da0| 6e 61 6e 74 44 65 76 69 | 63 65 3d 64 65 76 69 63 |nantDevi|ce=devic|
|00000db0| 65 3b 0d 09 09 09 09 7d | 0d 09 09 09 7d 0d 09 09 |e;.....}|....}...|
|00000dc0| 64 65 76 69 63 65 3d 47 | 65 74 4e 65 78 74 44 65 |device=G|etNextDe|
|00000dd0| 76 69 63 65 28 64 65 76 | 69 63 65 29 3b 0d 09 7d |vice(dev|ice);..}|
|00000de0| 0d 09 72 65 74 75 72 6e | 20 64 6f 6d 69 6e 61 6e |..return| dominan|
|00000df0| 74 44 65 76 69 63 65 3b | 0d 7d 0d 0d 47 44 48 61 |tDevice;|.}..GDHa|
|00000e00| 6e 64 6c 65 20 41 64 64 | 72 65 73 73 54 6f 53 63 |ndle Add|ressToSc|
|00000e10| 72 65 65 6e 44 65 76 69 | 63 65 28 50 74 72 20 61 |reenDevi|ce(Ptr a|
|00000e20| 64 64 72 65 73 73 29 0d | 2f 2f 20 52 65 74 75 72 |ddress).|// Retur|
|00000e30| 6e 73 20 61 20 68 61 6e | 64 6c 65 20 74 6f 20 74 |ns a han|dle to t|
|00000e40| 68 65 20 73 63 72 65 65 | 6e 20 64 65 76 69 63 65 |he scree|n device|
|00000e50| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 70 69 78 65 | contain|ing pixe|
|00000e60| 6c 73 20 61 74 20 74 68 | 65 20 67 69 76 65 6e 20 |ls at th|e given |
|00000e70| 61 64 64 72 65 73 73 2e | 0d 2f 2f 20 52 65 74 75 |address.|.// Retu|
|00000e80| 72 6e 73 20 4e 55 4c 4c | 20 69 66 20 72 65 71 75 |rns NULL| if requ|
|00000e90| 65 73 74 20 63 61 6e 27 | 74 20 62 65 20 73 61 74 |est can'|t be sat|
|00000ea0| 69 73 66 69 65 64 2e 0d | 2f 2f 20 54 68 65 20 61 |isfied..|// The a|
|00000eb0| 6c 67 6f 72 69 74 68 6d | 20 72 6f 75 6e 64 73 20 |lgorithm| rounds |
|00000ec0| 61 64 64 72 65 73 73 65 | 73 20 64 6f 77 6e 20 74 |addresse|s down t|
|00000ed0| 6f 20 6d 75 6c 74 69 70 | 6c 65 73 20 6f 66 20 31 |o multip|les of 1|
|00000ee0| 36 20 4d 42 20 61 6e 64 | 20 63 68 65 63 6b 73 20 |6 MB and| checks |
|00000ef0| 66 6f 72 20 65 71 75 61 | 6c 69 74 79 2e 0d 7b 0d |for equa|lity..{.|
|00000f00| 09 47 44 48 61 6e 64 6c | 65 20 64 65 76 69 63 65 |.GDHandl|e device|
|00000f10| 3b 0d 09 6c 6f 6e 67 20 | 6d 61 73 6b 3b 0d 09 69 |;..long |mask;..i|
|00000f20| 6e 74 20 65 72 72 6f 72 | 3b 0d 09 6c 6f 6e 67 20 |nt error|;..long |
|00000f30| 76 61 6c 75 65 3b 0d 0d | 09 65 72 72 6f 72 3d 47 |value;..|.error=G|
|00000f40| 65 73 74 61 6c 74 28 67 | 65 73 74 61 6c 74 51 75 |estalt(g|estaltQu|
|00000f50| 69 63 6b 64 72 61 77 56 | 65 72 73 69 6f 6e 2c 26 |ickdrawV|ersion,&|
|00000f60| 76 61 6c 75 65 29 3b 0d | 09 69 66 28 65 72 72 6f |value);.|.if(erro|
|00000f70| 72 20 7c 7c 20 76 61 6c | 75 65 3c 67 65 73 74 61 |r || val|ue<gesta|
|00000f80| 6c 74 38 42 69 74 51 44 | 29 72 65 74 75 72 6e 20 |lt8BitQD|)return |
|00000f90| 4e 55 4c 4c 3b 09 2f 2f | 20 6e 65 65 64 20 38 2d |NULL;.//| need 8-|
|00000fa0| 62 69 74 20 71 75 69 63 | 6b 64 72 61 77 0d 09 6d |bit quic|kdraw..m|
|00000fb0| 61 73 6b 3d 7e 28 30 78 | 31 30 30 30 30 30 30 2d |ask=~(0x|1000000-|
|00000fc0| 31 29 3b 0d 09 64 65 76 | 69 63 65 3d 47 65 74 44 |1);..dev|ice=GetD|
|00000fd0| 65 76 69 63 65 4c 69 73 | 74 28 29 3b 0d 09 77 68 |eviceLis|t();..wh|
|00000fe0| 69 6c 65 28 64 65 76 69 | 63 65 21 3d 4e 55 4c 4c |ile(devi|ce!=NULL|
|00000ff0| 29 20 7b 0d 09 09 69 66 | 20 28 54 65 73 74 44 65 |) {...if| (TestDe|
|00001000| 76 69 63 65 41 74 74 72 | 69 62 75 74 65 28 64 65 |viceAttr|ibute(de|
|00001010| 76 69 63 65 2c 73 63 72 | 65 65 6e 44 65 76 69 63 |vice,scr|eenDevic|
|00001020| 65 29 20 26 26 0d 09 09 | 09 28 28 28 6c 6f 6e 67 |e) &&...|.(((long|
|00001030| 29 61 64 64 72 65 73 73 | 26 6d 61 73 6b 29 3d 3d |)address|&mask)==|
|00001040| 28 28 6c 6f 6e 67 29 28 | 2a 2a 28 2a 2a 64 65 76 |((long)(|**(**dev|
|00001050| 69 63 65 29 2e 67 64 50 | 4d 61 70 29 2e 62 61 73 |ice).gdP|Map).bas|
|00001060| 65 41 64 64 72 26 6d 61 | 73 6b 29 29 29 0d 09 09 |eAddr&ma|sk)))...|
|00001070| 09 09 62 72 65 61 6b 3b | 0d 09 09 64 65 76 69 63 |..break;|...devic|
|00001080| 65 3d 47 65 74 4e 65 78 | 74 44 65 76 69 63 65 28 |e=GetNex|tDevice(|
|00001090| 64 65 76 69 63 65 29 3b | 0d 09 7d 0d 09 72 65 74 |device);|..}..ret|
|000010a0| 75 72 6e 20 64 65 76 69 | 63 65 3b 0d 7d 0d 0d 47 |urn devi|ce;.}..G|
|000010b0| 44 48 61 6e 64 6c 65 20 | 53 6c 6f 74 54 6f 53 63 |DHandle |SlotToSc|
|000010c0| 72 65 65 6e 44 65 76 69 | 63 65 28 69 6e 74 20 6e |reenDevi|ce(int n|
|000010d0| 29 0d 2f 2f 20 52 65 74 | 75 72 6e 73 20 61 20 68 |).// Ret|urns a h|
|000010e0| 61 6e 64 6c 65 20 74 6f | 20 74 68 65 20 73 63 72 |andle to| the scr|
|000010f0| 65 65 6e 20 64 65 76 69 | 63 65 20 69 6e 20 73 6c |een devi|ce in sl|
|00001100| 6f 74 20 6e 2e 0d 2f 2f | 20 52 65 74 75 72 6e 73 |ot n..//| Returns|
|00001110| 20 4e 55 4c 4c 20 69 66 | 20 72 65 71 75 65 73 74 | NULL if| request|
|00001120| 20 63 61 6e 27 74 20 62 | 65 20 73 61 74 69 73 66 | can't b|e satisf|
|00001130| 69 65 64 2e 0d 7b 0d 09 | 47 44 48 61 6e 64 6c 65 |ied..{..|GDHandle|
|00001140| 20 64 65 76 69 63 65 3b | 0d 0d 09 64 65 76 69 63 | device;|...devic|
|00001150| 65 3d 47 65 74 44 65 76 | 69 63 65 4c 69 73 74 28 |e=GetDev|iceList(|
|00001160| 29 3b 0d 09 77 68 69 6c | 65 28 64 65 76 69 63 65 |);..whil|e(device|
|00001170| 21 3d 4e 55 4c 4c 29 20 | 7b 0d 09 09 69 66 20 28 |!=NULL) |{...if (|
|00001180| 54 65 73 74 44 65 76 69 | 63 65 41 74 74 72 69 62 |TestDevi|ceAttrib|
|00001190| 75 74 65 28 64 65 76 69 | 63 65 2c 73 63 72 65 65 |ute(devi|ce,scree|
|000011a0| 6e 44 65 76 69 63 65 29 | 20 26 26 0d 09 09 09 47 |nDevice)| &&....G|
|000011b0| 65 74 44 65 76 69 63 65 | 53 6c 6f 74 28 64 65 76 |etDevice|Slot(dev|
|000011c0| 69 63 65 29 3d 3d 6e 29 | 0d 09 09 09 09 62 72 65 |ice)==n)|.....bre|
|000011d0| 61 6b 3b 0d 09 09 64 65 | 76 69 63 65 3d 47 65 74 |ak;...de|vice=Get|
|000011e0| 4e 65 78 74 44 65 76 69 | 63 65 28 64 65 76 69 63 |NextDevi|ce(devic|
|000011f0| 65 29 3b 0d 09 7d 0d 09 | 72 65 74 75 72 6e 20 64 |e);..}..|return d|
|00001200| 65 76 69 63 65 3b 0d 7d | 0d 0d 73 68 6f 72 74 20 |evice;.}|..short |
|00001210| 69 6e 74 20 41 64 64 72 | 65 73 73 54 6f 53 6c 6f |int Addr|essToSlo|
|00001220| 74 28 50 74 72 20 61 64 | 64 72 65 73 73 29 0d 2f |t(Ptr ad|dress)./|
|00001230| 2f 20 4f 6c 64 20 72 6f | 75 74 69 6e 65 2e 20 44 |/ Old ro|utine. D|
|00001240| 6f 65 73 6e 27 74 20 77 | 6f 72 6b 20 77 69 74 68 |oesn't w|ork with|
|00001250| 20 62 75 69 6c 74 20 69 | 6e 20 76 69 64 65 6f 3a | built i|n video:|
|00001260| 20 4d 61 63 20 49 49 63 | 69 2c 20 49 49 73 69 2c | Mac IIc|i, IIsi,|
|00001270| 20 4c 43 2e 0d 2f 2f 20 | 55 73 65 20 41 64 64 72 | LC..// |Use Addr|
|00001280| 65 73 73 54 6f 53 63 72 | 65 65 6e 44 65 76 69 63 |essToScr|eenDevic|
|00001290| 65 28 29 20 69 6e 73 74 | 65 61 64 2e 0d 2f 2f 20 |e() inst|ead..// |
|000012a0| 52 65 74 75 72 6e 73 20 | 74 68 65 20 73 6c 6f 74 |Returns |the slot|
|000012b0| 20 61 20 67 69 76 65 6e | 20 61 64 64 72 65 73 73 | a given| address|
|000012c0| 20 69 73 20 69 6e 2e 20 | 52 65 74 75 72 6e 73 20 | is in. |Returns |
|000012d0| 7a 65 72 6f 20 69 66 20 | 6e 6f 6e 65 2e 0d 7b 0d |zero if |none..{.|
|000012e0| 09 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 20 62 |.unsigne|d long b|
|000012f0| 61 73 65 3b 0d 09 62 61 | 73 65 3d 28 75 6e 73 69 |ase;..ba|se=(unsi|
|00001300| 67 6e 65 64 20 6c 6f 6e | 67 29 20 61 64 64 72 65 |gned lon|g) addre|
|00001310| 73 73 3b 0d 09 69 66 20 | 28 30 78 66 39 30 30 30 |ss;..if |(0xf9000|
|00001320| 30 30 30 20 3c 20 62 61 | 73 65 20 26 26 20 62 61 |000 < ba|se && ba|
|00001330| 73 65 20 3c 20 30 78 66 | 65 66 66 66 66 66 66 29 |se < 0xf|effffff)|
|00001340| 0d 09 09 72 65 74 75 72 | 6e 20 28 62 61 73 65 2f |...retur|n (base/|
|00001350| 30 78 31 30 30 30 30 30 | 30 29 25 31 36 3b 0d 09 |0x100000|0)%16;..|
|00001360| 72 65 74 75 72 6e 20 30 | 3b 0d 7d 0d 0d 76 6f 69 |return 0|;.}..voi|
|00001370| 64 20 4c 6f 63 61 6c 54 | 6f 47 6c 6f 62 61 6c 52 |d LocalT|oGlobalR|
|00001380| 65 63 74 28 52 65 63 74 | 20 2a 72 29 0d 7b 0d 09 |ect(Rect| *r).{..|
|00001390| 50 6f 69 6e 74 20 70 74 | 3d 7b 30 2c 30 7d 3b 0d |Point pt|={0,0};.|
|000013a0| 09 0d 09 4c 6f 63 61 6c | 54 6f 47 6c 6f 62 61 6c |...Local|ToGlobal|
|000013b0| 28 26 70 74 29 3b 0d 09 | 4f 66 66 73 65 74 52 65 |(&pt);..|OffsetRe|
|000013c0| 63 74 28 72 2c 70 74 2e | 68 2c 70 74 2e 76 29 3b |ct(r,pt.|h,pt.v);|
|000013d0| 0d 7d 0d 0d 76 6f 69 64 | 20 47 6c 6f 62 61 6c 54 |.}..void| GlobalT|
|000013e0| 6f 4c 6f 63 61 6c 52 65 | 63 74 28 52 65 63 74 20 |oLocalRe|ct(Rect |
|000013f0| 2a 72 29 0d 7b 0d 09 50 | 6f 69 6e 74 20 70 74 3d |*r).{..P|oint pt=|
|00001400| 7b 30 2c 30 7d 3b 0d 09 | 0d 09 47 6c 6f 62 61 6c |{0,0};..|..Global|
|00001410| 54 6f 4c 6f 63 61 6c 28 | 26 70 74 29 3b 0d 09 4f |ToLocal(|&pt);..O|
|00001420| 66 66 73 65 74 52 65 63 | 74 28 72 2c 70 74 2e 68 |ffsetRec|t(r,pt.h|
|00001430| 2c 70 74 2e 76 29 3b 0d | 7d 00 00 00 00 00 00 00 |,pt.v);.|}.......|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001480| 00 00 01 00 00 00 02 28 | 00 00 01 28 00 00 00 4a |.......(|...(...J|
|00001490| 63 65 2e 63 20 76 65 72 | 73 69 6f 6e 20 32 2e 30 |ce.c ver|sion 2.0|
|000014a0| 33 0d 52 65 74 75 72 6e | 73 20 61 20 68 61 6e 64 |3.Return|s a hand|
|000014b0| 11 47 65 74 53 63 72 65 | 65 6e 44 65 76 69 63 65 |.GetScre|enDevice|
|000014c0| 2e 63 02 00 00 00 54 45 | 58 54 4b 41 48 4c 00 00 |.c....TE|XTKAHL..|
|000014d0| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 a7 e5 d5 b9 00 00 | 00 00 00 00 02 72 6f 74 |........|.....rot|
|00001500| 28 29 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 64 |() retur|ns the d|
|00001510| 65 76 69 63 65 27 73 20 | 73 6c 6f 74 20 6e 75 6d |evice's |slot num|
|00001520| 62 65 72 2e 0d 4e 6f 74 | 65 3a 20 74 68 69 73 20 |ber..Not|e: this |
|00001530| 66 69 6c 65 20 77 61 73 | 20 66 6f 72 6d 65 72 6c |file was| formerl|
|00001540| 79 20 63 61 6c 6c 65 64 | 20 47 44 47 65 74 53 63 |y called| GDGetSc|
|00001550| 72 65 65 6e 44 65 76 69 | 63 65 2e 63 2c 20 61 6c |reenDevi|ce.c, al|
|00001560| 74 68 6f 75 67 68 74 20 | 74 68 65 20 66 75 6e 63 |thought |the func|
|00001570| 74 69 6f 6e 0d 69 74 73 | 65 6c 66 20 68 61 73 20 |tion.its|elf has |
|00001580| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 20 74 68 |...H..Mo|naco. th|
|00001590| 65 20 6e 2d 74 68 20 73 | 63 72 65 65 6e 2c 20 77 |e n-th s|creen, w|
|000015a0| 68 65 72 65 20 74 00 06 | 00 04 00 2a 00 03 01 8d |here t..|...*....|
|000015b0| 02 7d 00 29 01 42 01 6a | 02 79 a7 ac 91 bd 00 00 |.}.).B.j|.y......|
|000015c0| 0f aa 00 00 0f ae 00 00 | 11 83 01 00 00 00 00 1e |........|........|
|000015d0| 00 2a 00 03 01 8d 02 7d | 00 29 01 42 01 6a 02 79 |.*.....}|.).B.j.y|
|000015e0| 00 00 11 83 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 b6 00 07 00 00 0d c0 | 00 00 0d d5 15 41 64 64 |........|.....Add|
|00001600| 72 65 73 73 54 6f 53 63 | 72 65 65 6e 44 65 76 69 |ressToSc|reenDevi|
|00001610| 63 65 00 00 11 cf 00 00 | 11 dc 0d 41 64 64 72 65 |ce......|...Addre|
|00001620| 73 73 54 6f 53 6c 6f 74 | 00 00 06 2e 00 00 06 3d |ssToSlot|.......=|
|00001630| 0f 47 65 74 53 63 72 65 | 65 6e 44 65 76 69 63 65 |.GetScre|enDevice|
|00001640| 00 00 0a 10 00 00 0a 1f | 0f 47 65 74 57 69 6e 64 |........|.GetWind|
|00001650| 6f 77 44 65 76 69 63 65 | 00 00 13 94 00 00 13 a5 |owDevice|........|
|00001660| 11 47 6c 6f 62 61 6c 54 | 6f 4c 6f 63 61 6c 52 65 |.GlobalT|oLocalRe|
|00001670| 63 74 00 00 13 2d 00 00 | 13 3e 11 4c 6f 63 61 6c |ct...-..|.>.Local|
|00001680| 54 6f 47 6c 6f 62 61 6c | 52 65 63 74 00 00 10 53 |ToGlobal|Rect...S|
|00001690| 00 00 10 55 13 53 6c 6f | 74 54 6f 53 63 72 65 65 |...U.Slo|tToScree|
|000016a0| 6e 44 65 76 69 63 65 00 | 00 00 01 00 00 00 02 28 |nDevice.|.......(|
|000016b0| 00 00 01 28 00 00 00 4a | 01 0f 5b f4 1d 04 00 00 |...(...J|..[.....|
|000016c0| 00 1c 00 4a 00 00 4d 50 | 53 52 00 02 00 0a 03 ed |...J..MP|SR......|
|000016d0| ff ff 00 00 00 00 00 00 | 00 00 03 f0 ff ff 00 00 |........|........|
|000016e0| 00 4c 00 00 00 00 03 ef | ff ff 00 00 00 6e 00 00 |.L......|.....n..|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+